# Replication Package Instructions

This replication package uses RMarkdown to replicate all data analysis and generate the manuscript of the pre-print paper submitted to the journal. The file with all data analysis code, and how it enters into the manuscript, is tax-experiment-replication.Rmd 

The data analysis takes a few hours to run on a modern computer, and requires working installations of R (https://cran.r-project.org), RStudio (https://posit.co/download/rstudio-desktop/), and Stan (https://github.com/stan-dev/rstan/wiki/RStan-Getting-Started).  The replication package is known to work on rstan version 2.32.5 with R version 4.3.1.

For convenience, this package includes the saved outputs from running the models, and so regenerating the paper will only take about a minute, using the "Knit" command in RStudio.  To re-analyse the data, the end of the following line of code in tax-experiment-replication.Rmd should be edited from FALSE to TRUE:

# rerun models

new_run_null <- new_run_symmetric <- new_run_asymmetric <- new_run_procon <- new_run_biglittle <- new_run_labcon <- new_run_leaveremain <- new_run_gender <- new_run_income <- new_run_degree <- new_run_party <- new_run_income <- new_run_income2 <- new_run_multivariate <- TRUE 

